import Mock from 'mockjs';

const userData = {
  timestamp: 1598430225246,
  status: 200,
  message: 'OK',
  data: {
    accessToken:
      'eyJhbGciOiJFUzUxMiJ9.eyJleHAiOjE1OTg2MDMwMjUsInN1YiI6IjQwMDAwOToxMzA2NTQ4MzIxNyJ9.AThonEmHZipDIWtFGH3y108fnoL2smkGcie5erDPT1LqRQPUY0V850z9JGvAtksbaUT9v6Zgi106YSls1NsGqPu5ACaC4es3gWt9T9vBA-samA5onEtsvtp6iwbtJomkWNC9ZWLO8TXcGnFBnt8TnxVdPkn82uzFUR9Xb9Ft6T5-Xbi2',
    accessTokenExpiresIn: 1598502225000,
    key:
      'eyJhbGciOiJFUzUxMiJ9.eyJwYXNzd29yZCI6IjI4NDE3M0Y2RDI1QUU2NjUzOEVENzM2OTNENUQyODE3IiwiZXhwIjoxNjAxMDIyMjI1LCJzdWIiOiI0MDAwMDk6MTMwNjU0ODMyMTcifQ.AS3wZtoIDIEMxA6YUvpM5a5GwCv1968JCNJSC66tTajG_xz7Ad2cN0NkJGjTfOQSWY1kes_J2SeTOHyxXNc8va4XAHUHd3KF_ucOtZYqhSAY7FxTCbngfy4mCTnl14MeeT7n7dhKEWdFkhW2WA3XxQinQLTblGHbWiZwLmkdbqSZjFKi',
    keyExpiresIn: 1601022225000,
    hasPassword: 1,
    hasBindingPhone: 1,
    registerStatus: 1,
    userVo: {
      id: 400009,
      loginName: '13065483217',
      email: '',
      phone: '13065483217',
      realName: '张天天',
      idCard: '',
      nickName: '',
      headImg: 'http://pay2live.oss-cn-shenzhen.aliyuncs.com/shanglike/20190827110608imj7.jpeg',
      userType: 0,
      sex: 2,
      organId: 101028,
      organName: '杭州阿里巴巴1',
      role: 2,
      consumeJifenLevel: 21,
      honourJifenLevel: 21,
      userJifen: 0,
      expUser: 0,
      merchantMember: 1,
      agentMember: 1,
      administratorMember: 0,
      partnerMember: 0,
      bdMember: 0,
      brandAgentMember: 0,
      openId: '',
      environment: 'dev',
      source: 'DEFAULT',
    },
    status: 0,
  },
};

export default [
  {
    url: '/bnd-uaac/v1/user/userLogin',
    type: 'post',
    response: () => {
      return userData;
    },
  },
];
